package com.jmb.api.web.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jmb.api.entity.InterfaceProcessorLog;
import com.jmb.api.web.mapper.InterfaceProcessorMapper;
import com.jmb.api.web.service.InterfaceProcessorLogService;
import com.jmb.api.web.mapper.InterfaceProcessorLogMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 金梦博
* @description 针对表【t_interface_processor_log】的数据库操作Service实现
* @createDate 2025-09-25 17:19:45
*/
@Slf4j
@Service
public class InterfaceProcessorLogServiceImpl extends ServiceImpl<InterfaceProcessorLogMapper, InterfaceProcessorLog>
    implements InterfaceProcessorLogService{
    @Autowired
    private InterfaceProcessorLogMapper interfaceProcessorLogMapper;

    /**
     * 新增后置调用处理器调用日志，并返回自增对象
     *
     * @param interfaceProcessorLog postProcessorLogDO
     * @return 自增对象
     */
    @Override
    public InterfaceProcessorLog saveInterfaceProcessorLog(InterfaceProcessorLog interfaceProcessorLog) {
        interfaceProcessorLogMapper.insert(interfaceProcessorLog);
        log.info("后置处理器日志新增成功");
        return interfaceProcessorLog;
    }
}